<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>

<head>
    <title>日志列表</title>
</head>

<body>

<div id="wrapper">
    <div  class="gray-bg">
        <div class="row m-t-sm">
            <div class="col-lg-12">
                <ol class="breadcrumb f-fl">
                    <li>
                        <i class="fa fa-location-arrow"></i>    <a>系统管理</a>
                    </li>
                    <li class="active">
                        <strong>日志管理</strong>
                    </li>
                </ol>
                <%--<span class="navbar-right  m-r m-t-8"><a href="${ctx}/admin/user/add" class="btn-primary btn-add "> <i class='fa fa-plus-square-o'></i> 新 增</a></span>--%>
            </div>
        </div>

        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox">
                        <div class="ibox-content">
                            <div class="search-area border-bottom">
                                <form role="form" class="form-inline" id="queryform">
                                    <label for="logNumber">
                                        <input type="input" placeholder="日志号" name="logNumber"
                                               id="logNumber"
                                               class="form-control form-filter"></label>
                                    <label for="logAcount">
                                        <input type="input" placeholder="操作账号" name="logAcount"
                                               id="logAcount"
                                               class="form-control form-filter"></label>
                                    <button class="btn btn-primary" type="button" onclick="submitFilter()"> 查询</button>
                                    <button class="btn btn-primary" datatable-clear type="button"> 清除</button>
                                </form>
                            </div>
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover " id="data-table" >
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>






<!-- Page-Level Scripts -->
<script>
    $(document).ready(function(){
        var setting ={
            dom: '<"html5buttons"B>lTfgitp',
            buttons: [
                {extend: 'excel', title: 'ExampleFile'}
            ],
            "ajax": {
                "url":  "${ctx}/admin/sys/log/list",
                "type": "POST"
            },
            "columns": [
                { "title": "日志号", "data": "logNumber", "name":"log_number", "width": "18%","orderable": true  },
                { "title": "操作账号", "data": "logAcount","name":"log_acount", "width": "18%","orderable": true  },
                { "title": "操作时间", "data": "logDate", "name":"log_date","width": "20%","orderable": true  },
                { "title": "操作菜单", "data": "logModule","name":"log_module", "width": "20%","orderable": true  },
                { "title": "操作类型", "data": "logOperate","name":"log_operate", "width": "12%","orderable": true  },
                { "title": "操作IP", "data": "logIp","name":"log_ip", "width": "12%","orderable": false  }
            ],
            "columnDefs": [
            ],
            "order": [
                [ 1, "desc" ]
            ]
        };
        /* Init DataTables */
         var oTable = $('#data-table').DataTable(ehconfig.get_datatable_config(setting))
         submitFilter=function(){

             $('#data-table').DataTable().draw();

        }
    });
//    function clean() {
//        $('#logNumber').val('');
//        $('#logAcount').val('');
//        $('#data-table').DataTable().draw();
//    }

</script>

</body>

</html>
